/**
 * @在表达式中运用指针
 *
 * @author	 wangshikun <wangshikun2010@gmail.com>
 * @copyright	(c) 2012 wangshikun <wangshikun2010@gmail.com>
 * @license	http://www.opensource.org/licenses/mit-license.php The MIT License
 * @package	default
 * @subpackage	default
 */

#include <stdio.h>

int main(int argc, char *argv[]) {
	int i1, i2;
	int *p1, *p2;

	i1 = 5;
	p1 = &i1;
	i2 = *p1 / 2 + 10;
	p2 = p1;

	printf("i1 = %d, *p1 = %d, i2 = %d, *p2 = %d\n", i1, *p1, i2, *p2);

	return 0;
}
